//
//  JMViewController.m
//  oneYBImageBrowser
//
//  Created by Cansing on 12/31/2024.
//  Copyright (c) 2024 Cansing. All rights reserved.
//

#import "JMViewController.h"
#import "YBIBIconManager.h"
#import "oneYBImageBrowser/oneYBImageBrowser-umbrella.h"

@interface JMViewController ()

@end

@implementation JMViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    NSLog(@"%@",[YBIBIconManager sharedManager].videoBigPlayImage());
    self.view.backgroundColor=UIColor.blackColor;

    UIImageView*imgv=[[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    imgv.image=[YBIBIconManager sharedManager].videoBigPlayImage();
    [self.view addSubview:imgv];

	// Do any additional setup after loading the view, typically from a nib.
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    YBIBImageData *imageData = [YBIBImageData new];
    imageData.allowSaveToPhotoAlbum = NO;
    
    imageData.imageURL = [NSURL URLWithString:@"http://img1.baidu.com/it/u=2751806358,99630375&fm=253&app=138&f=JPEG?w=800&h=1422"];
    
    YBImageBrowser *browser = [YBImageBrowser new];
    
    browser.dataSourceArray = @[imageData];
    browser.currentPage = 1;
    [browser show];
    
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
